/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.aes.payment;

import java.util.Random;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author Raghav
 */
@WebService(serviceName = "PaymentHistory")
public class PaymentHistory {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "getPaymentHistory")
    public boolean getPaymentHistory(@WebParam(name = "userid")
    String userid, @WebParam(name = "creditcard")
    String creditcard) {
        Random r=new Random();
        int myProb=r.nextInt(50);
        if(myProb%2==0)
            return true;
        else
            return false;
    }

    /** This is a sample web service operation */
   
}
